package newsDemo.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

@Data
@TableName("user")
@Validated
public class user {
    int userId;
    String userName;
    @JsonIgnore
    String userPassword;
    String userKey;

    public user() {}
    public user(String name, String password, String key) {
        this.userName = name;
        this.userPassword = password;
        this.userKey = key;
    }
}
